<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html class="">
<head>
	
	<meta name="author" content="蓝凌科技">
	<meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="0" />

	<link rel="stylesheet" type="text/css" href="/Public/Api/css/sm.min.css">	
	<link rel="stylesheet" type="text/css" href="/Public/Api/css/sm-extend.min.css">	
	
	<title>帮工小哥</title>
	
	<script type="text/javascript">
	    var _root = '<?php echo ($_site_url); echo U(' / ');?>', _controller = '<?php echo ($_controller); ?>';
	</script>
	
	
	<link rel="stylesheet" type="text/css" href="/Public/Api/css/custom.css">


</head>
<body>
	
	

<div class="page-group">
    <div class="page page-custom page-current">
        <!-- 你的html代码 -->
        <div class="bar bar-custom">
        	<form action="" method="post">
	            <div class="searchbar searchbar-right searchbar-custom">
	                <a class="searchbar-cancel">取消</a>
	                <div class="search-input search-input-custom">
	                    <label class="icon icon-search icon-align-right" for="search"></label>
	                    <input type="search" id="param" name="param" placeholder="输入关键字...">
	                </div>
	            </div>
            </form>
        </div>
        <div class="content bar-header-secondary">
        	<?php if(!empty($list)): if(is_array($list)): foreach($list as $key=>$class): ?><div class="content-block-title content-block-title-custom"><?php echo ($class["name"]); ?></div>
		            <div class="list-block list-block-custom">
		                <ul>
		                	<?php if(is_array($class['detail'])): foreach($class['detail'] as $key=>$detail): ?><li class="item-content item-link" onclick="javascript:window.location.href='<?php echo U('Orders/appointment', 'detail_id='.$detail['detail_id'].'&class_id='.$detail['class_id']);?>'">
		                        <div class="item-media"><i class="icon icon-f7"></i></div>
		                        <div class="item-inner">
		                            <div class="item-title"><?php echo ($detail["detail_name"]); ?></div>
		                            <div class="item-after highlight">
		                            	<?php echo ($detail["price"]); echo get_dictionary_enum_name('unit_options', $detail['unit']);?>
		                            </div>
		                        </div>
		                    </li><?php endforeach; endif; ?>
		                </ul>
		            </div><?php endforeach; endif; ?>
		    <?php else: ?>
		    	<div class="content-block-title content-block-title-custom">未搜索到相关信息</div><?php endif; ?>
        </div>
    </div>
</div>




	<!-- 底部
================================================== -->
<footer>
</footer>
<script type="text/javascript">
    (function(){
        var ThinkPHP = window.Think = {
            "ROOT"   : "", //当前网站地址
            "APP"    : "/api.php?s=", //当前项目地址
            "PUBLIC" : "/Public", //项目公共目录地址
            "DEEP"   : "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
            "MODEL"  : ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
            "VAR"    : ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"]
        }
    })();
    
</script>
<script src="/Public/Api/js/zepto.min.js" type="text/javascript">
</script>
<script type="text/javascript">
//坑死人的配置项
//若不加此配置，则所有页面均使用 js 和 css 缓存
$.config = {
   	router: false
}
</script>
<script src="/Public/Api/js/sm.min.js" type="text/javascript">
</script>
<script src="/Public/Api/js/sm-extend.min.js" type="text/javascript">
</script>
<script src="/Public/Api/js/think.js" type="text/javascript">
</script>


<script src="/Public/Api/js/swiper.min.js" type="text/javascript"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
    pagination: '.swiper-pagination',
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
    paginationClickable: true,
    spaceBetween: 30,
    centeredSlides: true,
    autoplay: 2500,
    autoplayDisableOnInteraction: false
});
</script>

<!-- 用于加载js代码 -->

</body>
</html>